﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Sinacor.OMM.Translator.Interfaces;
using Sinacor.OMM.Translator.Enum;

namespace Sinacor.OMM.Translator
{
    public static class TranslatorFactory
    {
        public static ITranslator GetTranslator(String label, String message, ProtocolTypes type)
        {            
            IFactoryLogic factoryLogic = null;

            switch (type)
            {
                case ProtocolTypes.STM:
                    factoryLogic = FactoryLogic.STMFactoryLogic.GetInstance();
                    break;
                default:
                    break;
            }

            return factoryLogic.GetTranslator(label, message);
        }
    }
}
